/**
 * This class represents my personal hash method
 * @author Matthew Dye
 *
 * @param <K>
 */
public class MyHash implements HashFunction<String> {
/**
 * My hash will take the prime number 3, add it to the int value of each char and multiply it by the last value of out
 */
	@Override
	public int hash(String key) {
		int out = 3;
		for(int i = 0; i<key.length(); i++)
		{
			out =  out * 3 + (int)key.charAt(i);
		}
		return out;

	}

}
